﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;
using SystemAnalizer.Utils;

namespace SystemAnalizer
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private ProgramSettings prog_settings;
        public MainWindow()
        {
            InitializeComponent();
            LoadSettings();
            
        //    SystemAnalizer.Models.DiscreteMaker dd = new Models.DiscreteMaker(0, 1, 5, "t");
         //   double[] g = dd.calculate("t*t+5*t+sin(t)");
        }

        private void LoadSettings()
        {
            this.prog_settings = new ProgramSettings();
            ProgramSettings.ResourceActivator(this.prog_settings.GetSettingStruct.culture, this.Resources);
            ProgramSettings.MessageResourceActivator(this.prog_settings.GetSettingStruct.culture);
        }

       
        private void Close_Click(object sender, RoutedEventArgs e)
        {
            base.Close();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            CreateSystem crsys = new CreateSystem(this.prog_settings);
            crsys.ShowDialog();
        }
    }
}
